function getLoginStatus() {

    $.ajax({
        type: 'get',
        url: 'login',
        success: function(body) {
            console.log("当前已经登陆!")
        },
        error: function() {
            console.log("当前未登陆!");
            location.assign('login.html');
        }
    })

}

